package word511;

public class PrintString implements Runnable{
    private String greet;
    private int frequency;

    public PrintString(String greet, int frequency){
        this.greet = greet;
        this.frequency = frequency;
    }
    @Override
    public void run() {
        for (int i=0;i<=frequency;i++){
            System.out.println(greet);
        }
    }
}
